<div class="form-group col-md-12 {$form[type].extra_class|default=''}" id="form_group_{$form[type].name}">
  <label for="{$form[type].name}">{$form[type].title}</label>
  <div class="form-controls">
    <div class="checkbox-box">
    {volist name="$form[type].options" id="option"}
      <div class="custom-control custom-checkbox custom-control-inline">
        <input type="checkbox"  name="{$form[type].name}[]" class="custom-control-input" id="{$form[type].name}{$key}" value="{$key}" <?php $key = (string)$key; ?> {in name="key" value="$form[type].value|default=''"}checked{/in} {$form[type].extra_attr|default=''}>
        <label class="custom-control-label" for="{$form[type].name}{$key}">{$option}</label>
      </div>
    {/volist}
    </div>
    {notempty name="form[type].remark"}
    <small class="form-text text-muted">{$form[type].remark|raw|clear_js}</small>
    {/notempty}
  </div>
</div>